package com.veryedu.hibernate.hbm.entity;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Orderinfo entity. @author MyEclipse Persistence Tools
 */

public class Orderinfo implements java.io.Serializable {

	// Fields

	private Integer orderid;
	private Userinfo userinfo;
	private Timestamp ordertime;
	private Float totalmoney;
	private Set orderitemses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Orderinfo() {
	}

	/** minimal constructor */
	public Orderinfo(Timestamp ordertime) {
		this.ordertime = ordertime;
	}

	/** full constructor */
	public Orderinfo(Userinfo userinfo, Timestamp ordertime, Float totalmoney,
			Set orderitemses) {
		this.userinfo = userinfo;
		this.ordertime = ordertime;
		this.totalmoney = totalmoney;
		this.orderitemses = orderitemses;
	}

	// Property accessors

	public Integer getOrderid() {
		return this.orderid;
	}

	public void setOrderid(Integer orderid) {
		this.orderid = orderid;
	}

	public Userinfo getUserinfo() {
		return this.userinfo;
	}

	public void setUserinfo(Userinfo userinfo) {
		this.userinfo = userinfo;
	}

	public Timestamp getOrdertime() {
		return this.ordertime;
	}

	public void setOrdertime(Timestamp ordertime) {
		this.ordertime = ordertime;
	}

	public Float getTotalmoney() {
		return this.totalmoney;
	}

	public void setTotalmoney(Float totalmoney) {
		this.totalmoney = totalmoney;
	}

	public Set getOrderitemses() {
		return this.orderitemses;
	}

	public void setOrderitemses(Set orderitemses) {
		this.orderitemses = orderitemses;
	}

}